<?php
/**
 * Created by PhpStorm.
 * User: bxm
 * Date: 2022/9/5
 * Time: 14:36
 */

namespace app\common\model\worker;

use app\common\model\AdminModel;
use app\common\model\BaseModel;
use think\facade\Db;

class CustomerRectifyDataModel extends BaseModel
{
    protected $table = 'customer_rectify_data';
    #获取器--商品订单状态
    public function getorderStatusTextAttr($value, $data)
    {
        $status = [
            '0' => '设计师下单中',
            '0.1' => '采购审核中',
            '0.2'=>'采购审核通过，设计主管审核中',
            '1' => '设计主管审核通过',
            '2'=>'待客户代表审核',
            '2.1'=>'交付经理审核中',
            '2.2'=> '设计主管审核中',
            '3'=>'采购中',
            '3.1'=>'会计审核中',
            '3.2'=>'总经理审核中',
            '3.3'=>'管理员审核中',
            '4'=>'待回货',
            '5'=>'待派工',
            '6'=>'待安装',
            '7'=>'安装中',
            '8'=>'待验收',
            '9'=>'交付'
        ];
        return $status[$data['order_status']];
    }
}